package com.atos.asde2.tcpme.ui.handles;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.ui.PlatformUI;

import com.atos.asde2.tcpme.ui.editor.ProjectManageEditor;
import com.atos.asde2.tcpme.ui.editor.ProjectManageInput;

public class OpenProjectManagerHandler extends AbstractHandler{

	@Override
	public Object execute(ExecutionEvent event) throws ExecutionException {
		ProjectManageInput input = new ProjectManageInput();
		try {
			PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(input, ProjectManageEditor.ID);
		} catch (Exception e) {
		}
		return null;
	}

}
